<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>Express Checkout</title>
        <link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
        <script src="js/bootstrap.min.js"></script>
        <script src="js/div.js"></script>
    </head>
    <body>
        <script>
            (function(d, s, id) {
                var js, ref = d.getElementsByTagName(s)[0];
                if (!d.getElementById(id)) {
                    js = d.createElement(s);
                    js.id = id;
                    js.async = true;
                    js.src = "//www.paypalobjects.com/js/external/paypal.v1.js";
                    ref.parentNode.insertBefore(js, ref);
                }
            }(document, "script", "paypal-js"));
        </script>
        <div style="padding-left: 30px">
            <form id="checkout" action="setexpresscheckout.php" method="post">
                <fieldset>
                    <h1>PayPal2 - Simulação Express Checkout - Pagamento Simples </h1>
                    <br/>
                    <h2>Configuração API SetExpressCheckout</h2>
                    <p>Url do EndPoint (Ambiente de Teste ou Produção)<select name="ENDPOINT">
                            <!-- <option name="https://api-3t.sandbox.paypal.com/nvp">https://api-3t.sandbox.paypal.com/nvp</option> -->
                            <option name="https://api-3t.sandbox.paypal.com/nvp">https://api-3t.sandbox.paypal.com/nvp</option>
                            <option name="https://api-3t.paypal.com/nvp">https://api-3t.paypal.com/nvp</option>
                        </select>
                    </p>   
                    <p>Método (METHOD): <input type="text" name="METHOD" value="SetExpressCheckout"/></p>
                    <p>Imagem Header (HDRI): <input type="text" name="HDRIMG" value="https://www.paypal-brasil.com.br/logocenter/util/img/banners/banner100M.png"/></p>
                    <p>Ação (PAYMENTREQUEST_0_PAYMENTACTION): <input type="text" name="PAYMENTREQUEST_0_PAYMENTACTION" value="Sale"/></p>
                    <p>Versão (VERSION - Para saber a ultima versão vá a pagina paypal.com e veja no fonte da pagina os 3 primeiros digitos do campo webversion): <input type="texte" name="VERSION" value="108.0"/></p>
                    <p>Usuário (USER): <input type="text" name="USER" value="carlos_api1.roupasxyz.com.br"/></p>
                    <p>Senha (PWD): <input type="text" name="PWD" value="KYGRKNC5XSHP77VD"/></p>
                    <p>Assinatura (SIGNATURE): <input type="text" name="SIGNATURE" value="AFcWxV21C7fd0v3bYYYRCpSSRl31A6uOFNqJAeGIeDQAJWI-nny.6TBS"/></p>
                    <p>Url de retorno (RETURNURL): <input type="text" name="RETURNURL" value="http://eck-mauriciojunior.rhcloud.com/ec/retorno.php"/></p>
                    <p>Url de cancelamento (CANCELURL): <input type="text" name="CANCELURL" value="http://eck-mauriciojunior.rhcloud.com/ec/cancelado.php"/></p>
                    <p>Localização (LOCALECODE): <input type="text" name="LOCALECODE" value="pt_BR"/></p>
                    <p>Email (SUBJECT): <input type="text" name="SUBJECT" value=""/></p>
                    <p>1a página vista pelo comprador (LANDINGPAGE): 
                        <select name="LANDINGPAGE">
                            <option name="Login">Login</option>
                            <option name="Billing">Billing</option>
                        </select>
                    </p>
                    <br/>
                    <h2>Dados financeiros/total da compra</h2>
                    <p>Código da Moeda (PAYMENTREQUEST_0_CURRENCYCODE): <input type="text" name="PAYMENTREQUEST_0_CURRENCYCODE" value="BRL"/></p>
                    <p>TOTAL Geral (PAYMENTREQUEST_0_AMT): <input type="text" name="PAYMENTREQUEST_0_AMT" value="3600.00"/></p>
                    <p>Total dos Itens (PAYMENTREQUEST_0_ITEMAMT): <input type="text" name="PAYMENTREQUEST_0_ITEMAMT" value="3600.00"/></p>
                    <p>Total dos impostos (PAYMENTREQUEST_0_TAXAMT): <input type="text" name="PAYMENTREQUEST_0_ITEMAMT" value="0.0"/></p>
                    <p>Frete(PAYMENTREQUEST_0_SHIPPINGAMT): <input type="text" name="PAYMENTREQUEST_0_SHIPPINGAMT" value="0.0"/></p>
                    <strong>Informações Adicionais para controle do vendedor</strong>
                    <p>Descrição (PAYMENTREQUEST_0_DESC): <input type="text" name="PAYMENTREQUEST_0_DESC" value="Compra de super oferta (128 caracteres)"/></p>
                    <p>Campo aberto (PAYMENTREQUEST_0_CUSTOM): <input type="text" name="PAYMENTREQUEST_0_CUSTOM" value="Voce pode colocar qualquer informacao aqui. Ate 256 caracteres"/></p>
                    <p>Numero Nota Fiscal/Pedido (PAYMENTREQUEST_0_INVNUM): <input type="text" name="PAYMENTREQUEST_0_INVNUM" value=""/></p>
                    <br/>
                    <h2>Informações sobre os itens de compra</h2>
                    <strong>Item 1</strong>
                    <p>Nome (L_PAYMENTREQUEST_0_NAME0 - COMPR 127 CARACTERES): <input type="text" name="L_PAYMENTREQUEST_0_NAME0" value="iPad com Tela Retina Apple 32GB Wi-Fi + 4G"/></p>
                    <p>Descrição (L_PAYMENTREQUEST_0_DESC0 - COMPR 127 CARACTERES): <input type="text" name="L_PAYMENTREQUEST_0_DESC0" value="iPad com Tela Retina Apple Branco com 32GB, Tela Multi-Touch 9,7"/> </p>
                    <p>Valor do Item (L_PAYMENTREQUEST_0_AMT0): <input type="text" name="L_PAYMENTREQUEST_0_AMT0" value="1600.00"/></p>
                    <p>Numero do item (L_PAYMENTREQUEST_0_NUMBER0 - Usado para ordenar a lista de itens): <input type="text" name="L_PAYMENTREQUEST_0_NUMBER0" value="345"/></p>  
                    <p>Quantidade (L_PAYMENTREQUEST_0_QTY0): <input type="text" name="L_PAYMENTREQUEST_0_QTY0" value="1"/></p> 
                    <p>Categoria do item, Digital ou Fisico (L_PAYMENTREQUEST_0_ITEMCATEGORY0): <select name="L_PAYMENTREQUEST_0_ITEMCATEGORY0">
                            <option name="Physical">Physical</option>
                            <option name="Digital">Digital</option>
                        </select>
                    </p> 
                    <strong>Informações Adicionais para o Item 1</strong>
                    <p>Imposto (L_PAYMENTREQUEST_0_TAXAMT0): <input type="text" name="L_PAYMENTREQUEST_0_TAXAMT0" value="0"/></p>
                    <p>URL de Descrição do Item (L_PAYMENTREQUEST_0_ITEMURL0): <input type="text" name="L_PAYMENTREQUEST_0_ITEMURL0" value="http://www.fastshop.com.br/loja/informatica/apple-22554--6/ipad-com-tela-retina-apple-16gb-wi-fi-4g"/></p>
                    <br/> 
                    <strong>Item 2</strong>
                    <p>Nome (L_PAYMENTREQUEST_0_NAME1 - COMPR 127 CARACTERES): <input type="text" name="L_PAYMENTREQUEST_0_NAME1" value="Console Xbox One com Kinect Preto"/></p>
                    <p>Descrição (L_PAYMENTREQUEST_0_DESC1 - COMPR 127 CARACTERES): <input type="text" name="L_PAYMENTREQUEST_0_DESC1" value="Console Xbox One com Kinect Preto com 08 GB"/> </p>
                    <p>Valor do Item (L_PAYMENTREQUEST_0_AMT1): <input type="text" name="L_PAYMENTREQUEST_0_AMT1" value="2000.00"/></p>
                    <p>Numero do item (L_PAYMENTREQUEST_0_NUMBER1 - Usado para ordenar a lista de itens): <input type="text" name="L_PAYMENTREQUEST_0_NUMBER1" value="687"/></p>  
                    <p>Quantidade (L_PAYMENTREQUEST_0_QTY1): <input type="text" name="L_PAYMENTREQUEST_0_QTY1" value="1"/></p> 
                    <p>Categoria do item, Digital ou Fisico (L_PAYMENTREQUEST_0_ITEMCATEGORY1): <select name="L_PAYMENTREQUEST_0_ITEMCATEGORY1">
                            <option name="Physical">Physical</option>
                            <option name="Digital">Digital</option>
                        </select>
                    </p> 
                    <strong>Informações Adicionais para o Item 2</strong>
                    <p>Imposto (L_PAYMENTREQUEST_0_TAXAMT1): <input type="text" name="L_PAYMENTREQUEST_0_TAXAMT1" value="0"/></p>
                    <p>URL de Descrição do Item (L_PAYMENTREQUEST_0_ITEMURL1): <input type="text" name="L_PAYMENTREQUEST_0_ITEMURL1" value="http://www.fastshop.com.br/loja/console-xbox-one-com-kinect-preto-com-08-gb-memoria-ram-500-gb-hd?cm_re=-_-Vitrine+01-_-MSXBOXONE"/></p>
                    <br/>
                    <h2>Dados do Comprador</h2>
                    <p>Exibir Endereço de Entrega: (ADDROVERRIDE): <input type="text" name="ADDROVERRIDE" value="0"/></p>
                    <p>Endereço: (PAYMENTREQUEST_0_SHIPTOSTREET): <input type="text" name="PAYMENTREQUEST_0_SHIPTOSTREET" value=""/></p>
                    <p>Complemento: (PAYMENTREQUEST_0_SHIPTOSTREET2): <input type="text" name="PAYMENTREQUEST_0_SHIPTOSTREET2" value=""/></p>
                    <p>Cidade: (PAYMENTREQUEST_0_SHIPTOCITY): <input type="text" name="PAYMENTREQUEST_0_SHIPTOCITY" value=""/></p>
                    <p>CEP: (PAYMENTREQUEST_0_SHIPTOZIP): <input type="text" name="PAYMENTREQUEST_0_SHIPTOZIP" value=""/></p>
                    <p>Código do Pais(PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE): <input type="text" name="PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE" value="BR"/></p>
                    <p>Estado: (PAYMENTREQUEST_0_SHIPTOSTATE): <input type="text" name="PAYMENTREQUEST_0_SHIPTOSTATE" value=""/></p>
                    </br>
                  <!--  <img src="https://www.paypalobjects.com/webstatic/mktg/br/botao-checkout_horizontal_ap.png" border="0" onclick="checkout.submit();"> -->
                    <input type="image"
                           src="https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif"
                           alt="Check out with PayPal" data-paypal-button="true"
                           data-paypal-id="<MerchantID>" />
                </fieldset> 
            </form>   
        </div>
    </body>
</html>
